.class public abstract Lcom/baidu/mobads/production/b;
.super Lcom/baidu/mobads/openad/c/c;
.source "SourceFile"

# interfaces
.implements Lcom/baidu/mobads/interfaces/IXNonLinearAdSlot;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/baidu/mobads/production/b$a;
    }
.end annotation


# static fields
.field public static a:Lcom/baidu/mobads/interfaces/IXAdContainerFactory;

.field private static final y:[Ljava/lang/String;


# instance fields
.field private A:Lcom/baidu/mobads/interfaces/IXAdResponseInfo;

.field private B:Ljava/lang/String;

.field private C:Landroid/os/Handler;

.field private D:Ljava/lang/Runnable;

.field private E:Lcom/baidu/mobads/openad/interfaces/event/IOAdEventListener;

.field protected b:Ljava/lang/Boolean;

.field public d:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;

.field protected e:Landroid/widget/RelativeLayout;

.field protected f:Landroid/content/Context;

.field protected g:I

.field public h:Lcom/baidu/mobads/interfaces/IXAdContainer;

.field protected i:Ljava/lang/String;

.field protected j:Lcom/baidu/mobads/production/u;

.field protected k:Lcom/baidu/mobads/vo/d;

.field protected l:Lcom/baidu/mobads/interfaces/IXAdConstants4PDK$SlotState;

.field protected m:I

.field protected n:I

.field protected o:Lcom/baidu/mobads/interfaces/IXAdConstants4PDK$SlotType;

.field protected p:Z

.field protected q:Ljava/util/HashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashMap<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field protected r:Ljava/util/concurrent/atomic/AtomicBoolean;

.field protected s:Ljava/lang/String;

.field protected t:Lcom/baidu/mobads/interfaces/feeds/IXAdFeedsRequestParameters;

.field protected final u:Lcom/baidu/mobads/interfaces/utils/IXAdLogger;

.field protected v:J

.field protected w:J

.field protected x:J

.field private z:Ljava/util/concurrent/atomic/AtomicBoolean;


# direct methods
.method static constructor <clinit>()V
    .locals 3

    const/4 v0, 0x2

    new-array v0, v0, [Ljava/lang/String;

    const/4 v1, 0x0

    const-string v2, "android.permission.ACCESS_COARSE_LOCATION"

    aput-object v2, v0, v1

    const/4 v1, 0x1

    const-string v2, "android.permission.WRITE_EXTERNAL_STORAGE"

    aput-object v2, v0, v1

    .line 1
    sput-object v0, Lcom/baidu/mobads/production/b;->y:[Ljava/lang/String;

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;)V
    .locals 2

    .line 1
    invoke-direct {p0}, Lcom/baidu/mobads/openad/c/c;-><init>()V

    const/4 p1, 0x0

    .line 2
    invoke-static {p1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    iput-object v0, p0, Lcom/baidu/mobads/production/b;->b:Ljava/lang/Boolean;

    .line 3
    new-instance v0, Ljava/util/concurrent/atomic/AtomicBoolean;

    const/4 v1, 0x1

    invoke-direct {v0, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>(Z)V

    iput-object v0, p0, Lcom/baidu/mobads/production/b;->z:Ljava/util/concurrent/atomic/AtomicBoolean;

    const/4 v0, 0x0

    .line 4
    iput-object v0, p0, Lcom/baidu/mobads/production/b;->d:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;

    .line 5
    iput p1, p0, Lcom/baidu/mobads/production/b;->g:I

    .line 6
    sget-object v1, Lcom/baidu/mobads/interfaces/IXAdConstants4PDK$SlotState;->IDEL:Lcom/baidu/mobads/interfaces/IXAdConstants4PDK$SlotState;

    iput-object v1, p0, Lcom/baidu/mobads/production/b;->l:Lcom/baidu/mobads/interfaces/IXAdConstants4PDK$SlotState;

    const/16 v1, 0x1388

    .line 7
    iput v1, p0, Lcom/baidu/mobads/production/b;->m:I

    .line 8
    iput p1, p0, Lcom/baidu/mobads/production/b;->n:I

    .line 9
    iput-boolean p1, p0, Lcom/baidu/mobads/production/b;->p:Z

    .line 10
    new-instance p1, Ljava/util/HashMap;

    invoke-direct {p1}, Ljava/util/HashMap;-><init>()V

    iput-object p1, p0, Lcom/baidu/mobads/production/b;->q:Ljava/util/HashMap;

    .line 11
    new-instance p1, Ljava/util/concurrent/atomic/AtomicBoolean;

    invoke-direct {p1}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>()V

    iput-object p1, p0, Lcom/baidu/mobads/production/b;->r:Ljava/util/concurrent/atomic/AtomicBoolean;

    .line 12
    new-instance p1, Landroid/os/Handler;

    invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;

    move-result-object v1

    invoke-direct {p1, v1}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V

    iput-object p1, p0, Lcom/baidu/mobads/production/b;->C:Landroid/os/Handler;

    .line 13
    iput-object v0, p0, Lcom/baidu/mobads/production/b;->D:Ljava/lang/Runnable;

    const-string p1, ""

    .line 14
    iput-object p1, p0, Lcom/baidu/mobads/production/b;->s:Ljava/lang/String;

    .line 15
    iput-object v0, p0, Lcom/baidu/mobads/production/b;->t:Lcom/baidu/mobads/interfaces/feeds/IXAdFeedsRequestParameters;

    .line 16
    new-instance p1, Lcom/baidu/mobads/production/c;

    invoke-direct {p1, p0}, Lcom/baidu/mobads/production/c;-><init>(Lcom/baidu/mobads/production/b;)V

    iput-object p1, p0, Lcom/baidu/mobads/production/b;->E:Lcom/baidu/mobads/openad/interfaces/event/IOAdEventListener;

    .line 17
    invoke-static {}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getInstance()Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;

    move-result-object p1

    invoke-virtual {p1}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getAdLogger()Lcom/baidu/mobads/interfaces/utils/IXAdLogger;

    move-result-object p1

    iput-object p1, p0, Lcom/baidu/mobads/production/b;->u:Lcom/baidu/mobads/interfaces/utils/IXAdLogger;

    return-void
.end method

.method private a()V
    .locals 4

    .line 4
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    sput-wide v0, Lcom/baidu/mobads/constants/a;->n:J

    .line 5
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->A:Lcom/baidu/mobads/interfaces/IXAdResponseInfo;

    invoke-virtual {p0, v0}, Lcom/baidu/mobads/production/b;->c(Lcom/baidu/mobads/interfaces/IXAdResponseInfo;)V

    .line 6
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->A:Lcom/baidu/mobads/interfaces/IXAdResponseInfo;

    invoke-interface {v0}, Lcom/baidu/mobads/interfaces/IXAdResponseInfo;->getAdInstanceList()Ljava/util/ArrayList;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/baidu/mobads/production/b;->a(Ljava/util/ArrayList;)V

    .line 7
    invoke-virtual {p0}, Lcom/baidu/mobads/production/b;->h()Z

    move-result v0

    const-string v1, "XAdMouldeLoader ad-server requesting success"

    if-nez v0, :cond_0

    .line 8
    invoke-virtual {p0, v1}, Lcom/baidu/mobads/production/b;->b(Ljava/lang/String;)V

    return-void

    .line 9
    :cond_0
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->A:Lcom/baidu/mobads/interfaces/IXAdResponseInfo;

    invoke-interface {v0}, Lcom/baidu/mobads/interfaces/IXAdResponseInfo;->getPrimaryAdInstanceInfo()Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;

    move-result-object v0

    .line 10
    invoke-virtual {p0, v0}, Lcom/baidu/mobads/production/b;->b(Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;)Ljava/lang/String;

    move-result-object v2

    .line 11
    invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v3

    if-eqz v3, :cond_1

    .line 12
    invoke-virtual {p0, v1}, Lcom/baidu/mobads/production/b;->b(Ljava/lang/String;)V

    return-void

    .line 13
    :cond_1
    invoke-virtual {p0, v2, v0}, Lcom/baidu/mobads/production/b;->a(Ljava/lang/String;Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;)Z

    move-result v2

    .line 14
    invoke-virtual {p0, v2, v0}, Lcom/baidu/mobads/production/b;->a(ZLcom/baidu/mobads/interfaces/IXAdInstanceInfo;)V

    if-eqz v2, :cond_3

    .line 15
    invoke-virtual {p0}, Lcom/baidu/mobads/production/b;->i()Z

    move-result v0

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/baidu/mobads/production/b;->d:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;

    check-cast v0, Lcom/baidu/mobads/vo/XAdInstanceInfo;

    invoke-virtual {v0}, Lcom/baidu/mobads/vo/XAdInstanceInfo;->getSplash3DLocalUrl()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_2

    .line 16
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->u:Lcom/baidu/mobads/interfaces/utils/IXAdLogger;

    const-string v1, "XAbstractAdProdTemplate"

    const-string v2, "\u80cc\u666f\u56fe\u7247\u6ca1\u6709\u7f13\u5b58\u5b8c\u6210"

    invoke-interface {v0, v1, v2}, Lcom/baidu/mobads/interfaces/utils/IXAdLogger;->i(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_0

    :cond_2
    const-string v0, "download the splash picture successfully"

    .line 17
    invoke-virtual {p0, v0}, Lcom/baidu/mobads/production/b;->b(Ljava/lang/String;)V

    :goto_0
    return-void

    .line 18
    :cond_3
    invoke-virtual {p0, v0}, Lcom/baidu/mobads/production/b;->a(Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;)Z

    move-result v2

    if-eqz v2, :cond_4

    .line 19
    invoke-direct {p0, v0}, Lcom/baidu/mobads/production/b;->h(Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;)V

    return-void

    .line 20
    :cond_4
    invoke-virtual {p0, v0}, Lcom/baidu/mobads/production/b;->e(Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;)Z

    move-result v2

    if-nez v2, :cond_5

    .line 21
    invoke-virtual {p0, v1}, Lcom/baidu/mobads/production/b;->b(Ljava/lang/String;)V

    .line 22
    :cond_5
    invoke-direct {p0, v0}, Lcom/baidu/mobads/production/b;->h(Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;)V

    return-void
.end method

.method private a(Landroid/os/Message;Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;)V
    .locals 6

    .line 98
    invoke-virtual {p1}, Landroid/os/Message;->getData()Landroid/os/Bundle;

    move-result-object v0

    const-string v1, "caching_result"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;)Z

    move-result v0

    const-string v1, "download the splash picture successfully"

    if-eqz v0, :cond_4

    .line 99
    invoke-virtual {p1}, Landroid/os/Message;->getData()Landroid/os/Bundle;

    move-result-object v0

    const-string v2, "local_creative_url"

    invoke-virtual {v0, v2}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 100
    invoke-interface {p2, v0}, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;->setLocalCreativeURL(Ljava/lang/String;)V

    .line 101
    invoke-interface {p2}, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;->getCreativeType()Lcom/baidu/mobads/interfaces/IXAdInstanceInfo$CreativeType;

    move-result-object v2

    sget-object v3, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo$CreativeType;->RM:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo$CreativeType;

    const-string v4, "XAbstractAdProdTemplate"

    if-ne v2, v3, :cond_1

    .line 102
    invoke-virtual {p0}, Lcom/baidu/mobads/production/b;->i()Z

    move-result v2

    if-eqz v2, :cond_0

    .line 103
    iget-object v2, p0, Lcom/baidu/mobads/production/b;->u:Lcom/baidu/mobads/interfaces/utils/IXAdLogger;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v5, "processDlResult: "

    invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-interface {v2, v4, v3}, Lcom/baidu/mobads/interfaces/utils/IXAdLogger;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 104
    :try_start_0
    invoke-virtual {p0}, Lcom/baidu/mobads/production/b;->getApplicationContext()Landroid/content/Context;

    move-result-object v2

    invoke-interface {p2}, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;->getMainPictureUrl()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Lcom/baidu/mobads/utils/m;->a(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 105
    invoke-static {v0, v2}, Lcom/baidu/mobads/utils/ac;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/util/List;

    .line 106
    invoke-virtual {p0}, Lcom/baidu/mobads/production/b;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-interface {p2}, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;->getMainPictureUrl()Ljava/lang/String;

    move-result-object v2

    invoke-static {v0, v2}, Lcom/baidu/mobads/utils/m;->a(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 107
    invoke-direct {p0, p2, v0}, Lcom/baidu/mobads/production/b;->c(Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    nop

    goto :goto_0

    .line 108
    :cond_0
    iget-object v2, p0, Lcom/baidu/mobads/production/b;->s:Ljava/lang/String;

    const-string v3, "vr"

    invoke-virtual {v2, v3}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_1

    .line 109
    invoke-static {v0}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v0

    .line 110
    invoke-static {}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getInstance()Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;

    move-result-object v2

    invoke-virtual {v2}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getCommonUtils()Lcom/baidu/mobads/utils/h;

    move-result-object v2

    .line 111
    invoke-interface {p2}, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;->getMainPictureUrl()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Lcom/baidu/mobads/utils/h;->md5(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 112
    invoke-direct {p0, v2, v0}, Lcom/baidu/mobads/production/b;->a(Ljava/lang/String;Landroid/net/Uri;)V

    .line 113
    :cond_1
    :goto_0
    invoke-virtual {p0, p2}, Lcom/baidu/mobads/production/b;->e(Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;)Z

    move-result v0

    if-eqz v0, :cond_3

    .line 114
    invoke-virtual {p0}, Lcom/baidu/mobads/production/b;->i()Z

    move-result v0

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/baidu/mobads/production/b;->d:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;

    check-cast v0, Lcom/baidu/mobads/vo/XAdInstanceInfo;

    .line 115
    invoke-virtual {v0}, Lcom/baidu/mobads/vo/XAdInstanceInfo;->getSplash3DLocalUrl()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_2

    .line 116
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->u:Lcom/baidu/mobads/interfaces/utils/IXAdLogger;

    const-string v1, "\u80cc\u666f\u56fe\u7247\u6ca1\u6709\u7f13\u5b58\u5b8c\u6210"

    invoke-interface {v0, v4, v1}, Lcom/baidu/mobads/interfaces/utils/IXAdLogger;->i(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_1

    .line 117
    :cond_2
    invoke-virtual {p0, v1}, Lcom/baidu/mobads/production/b;->b(Ljava/lang/String;)V

    .line 118
    :cond_3
    :goto_1
    invoke-direct {p0, p2}, Lcom/baidu/mobads/production/b;->g(Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;)Z

    move-result v0

    if-eqz v0, :cond_6

    .line 119
    new-instance v0, Lcom/baidu/mobads/e/a;

    const-string v1, "vdieoCacheSucc"

    invoke-direct {v0, v1}, Lcom/baidu/mobads/e/a;-><init>(Ljava/lang/String;)V

    invoke-virtual {p0, v0}, Lcom/baidu/mobads/openad/c/c;->dispatchEvent(Lcom/baidu/mobads/openad/interfaces/event/IOAdEvent;)V

    goto :goto_2

    .line 120
    :cond_4
    invoke-direct {p0, p2}, Lcom/baidu/mobads/production/b;->g(Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;)Z

    move-result v0

    if-eqz v0, :cond_5

    .line 121
    new-instance v0, Lcom/baidu/mobads/e/a;

    const-string v2, "vdieoCacheFailed"

    invoke-direct {v0, v2}, Lcom/baidu/mobads/e/a;-><init>(Ljava/lang/String;)V

    invoke-virtual {p0, v0}, Lcom/baidu/mobads/openad/c/c;->dispatchEvent(Lcom/baidu/mobads/openad/interfaces/event/IOAdEvent;)V

    :cond_5
    const/4 v0, 0x0

    .line 122
    invoke-interface {p2, v0}, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;->setLocalCreativeURL(Ljava/lang/String;)V

    .line 123
    invoke-virtual {p0, p2}, Lcom/baidu/mobads/production/b;->e(Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;)Z

    move-result v0

    if-eqz v0, :cond_6

    .line 124
    invoke-virtual {p0, v1}, Lcom/baidu/mobads/production/b;->b(Ljava/lang/String;)V

    .line 125
    :cond_6
    :goto_2
    invoke-direct {p0, p1, p2}, Lcom/baidu/mobads/production/b;->b(Landroid/os/Message;Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;)V

    return-void
.end method

.method private a(Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 7

    .line 91
    :try_start_0
    invoke-direct {p0, p1}, Lcom/baidu/mobads/production/b;->f(Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;)Z

    move-result v0

    if-nez v0, :cond_0

    return-void

    .line 92
    :cond_0
    invoke-static {}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getInstance()Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;

    move-result-object v0

    .line 93
    invoke-virtual {v0}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getAdCreativeCacheManager()Lcom/baidu/mobads/utils/m;

    move-result-object v1

    .line 94
    invoke-virtual {v1, p3}, Lcom/baidu/mobads/utils/m;->a(Ljava/lang/String;)V

    .line 95
    invoke-virtual {p0}, Lcom/baidu/mobads/production/b;->getApplicationContext()Landroid/content/Context;

    move-result-object v2

    new-instance v6, Lcom/baidu/mobads/production/k;

    .line 96
    invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;

    move-result-object v0

    invoke-direct {v6, p0, v0, p1}, Lcom/baidu/mobads/production/k;-><init>(Lcom/baidu/mobads/production/b;Landroid/os/Looper;Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;)V

    move-object v3, p2

    move-object v4, p3

    move-object v5, p4

    .line 97
    invoke-virtual/range {v1 .. v6}, Lcom/baidu/mobads/utils/m;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroid/os/Handler;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :catchall_0
    return-void
.end method

.method static synthetic a(Lcom/baidu/mobads/production/b;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/baidu/mobads/production/b;->b()V

    return-void
.end method

.method static synthetic a(Lcom/baidu/mobads/production/b;Landroid/os/Message;Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;)V
    .locals 0

    .line 2
    invoke-direct {p0, p1, p2}, Lcom/baidu/mobads/production/b;->a(Landroid/os/Message;Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;)V

    return-void
.end method

.method static synthetic a(Lcom/baidu/mobads/production/b;Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 0

    .line 3
    invoke-direct {p0, p1, p2, p3, p4}, Lcom/baidu/mobads/production/b;->a(Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method private a(Ljava/lang/String;Landroid/net/Uri;)V
    .locals 2

    .line 126
    new-instance v0, Ljava/lang/Thread;

    new-instance v1, Lcom/baidu/mobads/production/l;

    invoke-direct {v1, p0, p1, p2}, Lcom/baidu/mobads/production/l;-><init>(Lcom/baidu/mobads/production/b;Ljava/lang/String;Landroid/net/Uri;)V

    invoke-direct {v0, v1}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    .line 127
    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    return-void
.end method

.method private a(Ljava/util/ArrayList;)V
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/ArrayList<",
            "Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;",
            ">;)V"
        }
    .end annotation

    if-eqz p1, :cond_1

    .line 82
    invoke-virtual {p1}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lez v0, :cond_1

    .line 83
    invoke-virtual {p1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :cond_0
    :goto_0
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;

    .line 84
    invoke-direct {p0, v0}, Lcom/baidu/mobads/production/b;->g(Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;)Z

    move-result v1

    if-eqz v1, :cond_0

    invoke-virtual {p0}, Lcom/baidu/mobads/production/b;->s()Z

    move-result v1

    if-eqz v1, :cond_0

    .line 85
    invoke-direct {p0, v0}, Lcom/baidu/mobads/production/b;->h(Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;)V

    goto :goto_0

    :cond_1
    return-void
.end method

.method private a(Lcom/baidu/mobads/c/a;Lcom/baidu/mobads/interfaces/IXAdInstanceInfo$CreativeType;Ljava/lang/String;)Z
    .locals 1

    .line 86
    :try_start_0
    sget-object v0, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo$CreativeType;->VIDEO:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo$CreativeType;

    if-ne p2, v0, :cond_0

    iget-object p2, p0, Lcom/baidu/mobads/production/b;->o:Lcom/baidu/mobads/interfaces/IXAdConstants4PDK$SlotType;

    if-eqz p2, :cond_0

    sget-object p2, Lcom/baidu/mobads/interfaces/IXAdConstants4PDK$SlotType;->SLOT_TYPE_FEEDS:Lcom/baidu/mobads/interfaces/IXAdConstants4PDK$SlotType;

    .line 87
    invoke-virtual {p2}, Lcom/baidu/mobads/interfaces/IXAdConstants4PDK$SlotType;->getValue()Ljava/lang/String;

    move-result-object p2

    iget-object v0, p0, Lcom/baidu/mobads/production/b;->o:Lcom/baidu/mobads/interfaces/IXAdConstants4PDK$SlotType;

    .line 88
    invoke-virtual {v0}, Lcom/baidu/mobads/interfaces/IXAdConstants4PDK$SlotType;->getValue()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p2

    if-eqz p2, :cond_0

    if-eqz p1, :cond_0

    .line 89
    invoke-virtual {p1, p3}, Lcom/baidu/mobads/c/a;->a(Ljava/lang/String;)Z

    move-result p1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-eqz p1, :cond_0

    const/4 p1, 0x1

    return p1

    :catchall_0
    move-exception p1

    .line 90
    iget-object p2, p0, Lcom/baidu/mobads/production/b;->u:Lcom/baidu/mobads/interfaces/utils/IXAdLogger;

    const-string p3, "XAbstractAdProdTemplate"

    invoke-interface {p2, p3, p1}, Lcom/baidu/mobads/interfaces/utils/IXAdLogger;->d(Ljava/lang/String;Ljava/lang/Throwable;)I

    :cond_0
    const/4 p1, 0x0

    return p1
.end method

.method private a(Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;Ljava/lang/String;)Z
    .locals 1

    .line 78
    invoke-static {}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getInstance()Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;

    move-result-object p2

    invoke-virtual {p2}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getSystemUtils()Lcom/baidu/mobads/interfaces/utils/IXAdSystemUtils;

    move-result-object p2

    .line 79
    invoke-virtual {p0}, Lcom/baidu/mobads/production/b;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-interface {p2, v0}, Lcom/baidu/mobads/interfaces/utils/IXAdSystemUtils;->isWifiConnected(Landroid/content/Context;)Ljava/lang/Boolean;

    move-result-object p2

    .line 80
    invoke-virtual {p2}, Ljava/lang/Boolean;->booleanValue()Z

    move-result p2

    .line 81
    invoke-direct {p0, p1}, Lcom/baidu/mobads/production/b;->g(Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;)Z

    move-result v0

    if-nez v0, :cond_1

    if-nez p2, :cond_1

    invoke-virtual {p0, p1}, Lcom/baidu/mobads/production/b;->c(Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;)Z

    move-result p1

    if-nez p1, :cond_1

    invoke-virtual {p0}, Lcom/baidu/mobads/production/b;->i()Z

    move-result p1

    if-eqz p1, :cond_0

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    return p1

    :cond_1
    :goto_0
    const/4 p1, 0x1

    return p1
.end method

.method private b(Lcom/baidu/mobads/interfaces/IXAdContainerContext;)Lcom/baidu/mobads/interfaces/IXAdContainer;
    .locals 5

    .line 33
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->u:Lcom/baidu/mobads/interfaces/utils/IXAdLogger;

    const-string v1, "XAbstractAdProdTemplate"

    const-string v2, "createAdContainer"

    invoke-interface {v0, v1, v2}, Lcom/baidu/mobads/interfaces/utils/IXAdLogger;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 34
    sget-object v0, Lcom/baidu/mobads/production/b;->a:Lcom/baidu/mobads/interfaces/IXAdContainerFactory;

    const/4 v2, 0x0

    if-eqz v0, :cond_0

    .line 35
    invoke-interface {v0, p1, v2}, Lcom/baidu/mobads/interfaces/IXAdContainerFactory;->createXAdContainer(Lcom/baidu/mobads/interfaces/IXAdContainerContext;Ljava/util/HashMap;)Lcom/baidu/mobads/interfaces/IXAdContainer;

    move-result-object v2

    if-eqz v2, :cond_0

    .line 36
    iget-object p1, p0, Lcom/baidu/mobads/production/b;->u:Lcom/baidu/mobads/interfaces/utils/IXAdLogger;

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "createAdContainer() apk.version="

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    sget-object v3, Lcom/baidu/mobads/production/b;->a:Lcom/baidu/mobads/interfaces/IXAdContainerFactory;

    invoke-interface {v3}, Lcom/baidu/mobads/interfaces/IXAdContainerFactory;->getRemoteVersion()D

    move-result-wide v3

    invoke-virtual {v0, v3, v4}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-interface {p1, v1, v0}, Lcom/baidu/mobads/interfaces/utils/IXAdLogger;->d(Ljava/lang/String;Ljava/lang/String;)I

    :cond_0
    return-object v2
.end method

.method private b()V
    .locals 1

    const/4 v0, 0x1

    .line 2
    invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    sput-object v0, Lcom/baidu/mobads/production/BaiduXAdSDKContext;->isRemoteLoadSuccess:Ljava/lang/Boolean;

    const-string v0, "XAdMouldeLoader load success"

    .line 3
    invoke-virtual {p0, v0}, Lcom/baidu/mobads/production/b;->c(Ljava/lang/String;)V

    return-void
.end method

.method private b(Landroid/content/Context;)V
    .locals 4

    .line 1
    new-instance v0, Landroid/os/Handler;

    invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;

    move-result-object v1

    invoke-direct {v0, v1}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V

    new-instance v1, Lcom/baidu/mobads/production/f;

    invoke-direct {v1, p0, p1}, Lcom/baidu/mobads/production/f;-><init>(Lcom/baidu/mobads/production/b;Landroid/content/Context;)V

    const-wide/16 v2, 0x7d0

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    return-void
.end method

.method private b(Landroid/os/Message;Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;)V
    .locals 9

    .line 15
    invoke-virtual {p0, p2}, Lcom/baidu/mobads/production/b;->d(Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;)Z

    move-result v0

    if-nez v0, :cond_0

    return-void

    .line 16
    :cond_0
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, ""

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Landroid/os/Message;->getData()Landroid/os/Bundle;

    move-result-object v1

    const-wide/16 v2, 0x0

    const-string v4, "caching_time_consume"

    invoke-virtual {v1, v4, v2, v3}, Landroid/os/Bundle;->getLong(Ljava/lang/String;J)J

    move-result-wide v1

    invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 17
    invoke-virtual {p0, p2}, Lcom/baidu/mobads/production/b;->b(Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;)Ljava/lang/String;

    move-result-object v1

    .line 18
    invoke-virtual {p1}, Landroid/os/Message;->getData()Landroid/os/Bundle;

    move-result-object p1

    const-string v2, "caching_result"

    invoke-virtual {p1, v2}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_1

    const-string p1, "success"

    goto :goto_0

    :cond_1
    const-string p1, "failed"

    .line 19
    :goto_0
    invoke-static {}, Lcom/baidu/mobads/b/a;->a()Lcom/baidu/mobads/b/a;

    move-result-object v2

    iget-object v3, p0, Lcom/baidu/mobads/production/b;->f:Landroid/content/Context;

    iget-object v4, p0, Lcom/baidu/mobads/production/b;->k:Lcom/baidu/mobads/vo/d;

    .line 20
    invoke-virtual {v4}, Lcom/baidu/mobads/vo/d;->d()Lcom/baidu/mobads/interfaces/IXAdProdInfo;

    move-result-object v6

    const/4 v4, 0x3

    new-array v7, v4, [Ljava/lang/Object;

    const/4 v4, 0x0

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    const-string v8, "file_dl_"

    invoke-virtual {v5, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    aput-object p1, v7, v4

    const/4 p1, 0x1

    aput-object v1, v7, p1

    const/4 p1, 0x2

    aput-object v0, v7, p1

    const-string v4, "383"

    move-object v5, p2

    .line 21
    invoke-virtual/range {v2 .. v7}, Lcom/baidu/mobads/b/a;->a(Landroid/content/Context;Ljava/lang/String;Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;Lcom/baidu/mobads/interfaces/IXAdProdInfo;[Ljava/lang/Object;)V

    return-void
.end method

.method private b(Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;Ljava/lang/String;)V
    .locals 7

    .line 11
    invoke-virtual {p0, p1}, Lcom/baidu/mobads/production/b;->d(Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 12
    invoke-static {}, Lcom/baidu/mobads/b/a;->a()Lcom/baidu/mobads/b/a;

    move-result-object v1

    iget-object v2, p0, Lcom/baidu/mobads/production/b;->f:Landroid/content/Context;

    iget-object v0, p0, Lcom/baidu/mobads/production/b;->k:Lcom/baidu/mobads/vo/d;

    .line 13
    invoke-virtual {v0}, Lcom/baidu/mobads/vo/d;->d()Lcom/baidu/mobads/interfaces/IXAdProdInfo;

    move-result-object v5

    const/4 v0, 0x2

    new-array v6, v0, [Ljava/lang/Object;

    const/4 v0, 0x0

    const-string v3, "file_dl_failed_not_wifi"

    aput-object v3, v6, v0

    const/4 v0, 0x1

    aput-object p2, v6, v0

    const-string v3, "383"

    move-object v4, p1

    .line 14
    invoke-virtual/range {v1 .. v6}, Lcom/baidu/mobads/b/a;->a(Landroid/content/Context;Ljava/lang/String;Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;Lcom/baidu/mobads/interfaces/IXAdProdInfo;[Ljava/lang/Object;)V

    :cond_0
    return-void
.end method

.method private c(Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;Ljava/lang/String;)V
    .locals 9

    .line 18
    new-instance v0, Ljava/io/File;

    invoke-direct {v0, p2}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 19
    invoke-virtual {v0}, Ljava/io/File;->listFiles()[Ljava/io/File;

    move-result-object p2

    const/4 v0, 0x3

    new-array v1, v0, [Ljava/lang/String;

    const-string v2, "jpg"

    const/4 v3, 0x0

    aput-object v2, v1, v3

    const-string v2, "png"

    const/4 v4, 0x1

    aput-object v2, v1, v4

    const/4 v2, 0x2

    const-string v4, "jpeg"

    aput-object v4, v1, v2

    if-eqz p2, :cond_4

    .line 20
    array-length v2, p2

    if-lez v2, :cond_4

    const/4 v2, 0x0

    .line 21
    :goto_0
    array-length v4, p2

    if-ge v2, v4, :cond_4

    .line 22
    aget-object v4, p2, v2

    invoke-virtual {v4}, Ljava/io/File;->listFiles()[Ljava/io/File;

    move-result-object v4

    if-eqz v4, :cond_3

    .line 23
    array-length v5, v4

    if-lez v5, :cond_3

    const/4 v5, 0x0

    .line 24
    :goto_1
    array-length v6, v4

    if-ge v5, v6, :cond_3

    .line 25
    aget-object v6, v4, v5

    invoke-virtual {v6}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v6

    const-string v7, ".mp4"

    invoke-virtual {v6, v7}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v6

    if-eqz v6, :cond_0

    .line 26
    aget-object p2, p2, v2

    invoke-virtual {p2}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object p2

    invoke-interface {p1, p2}, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;->setLocalCreativeURL(Ljava/lang/String;)V

    return-void

    :cond_0
    const/4 v6, 0x0

    :goto_2
    if-ge v6, v0, :cond_2

    .line 27
    aget-object v7, v1, v6

    .line 28
    aget-object v8, v4, v5

    invoke-virtual {v8}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v8, v7}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v7

    if-eqz v7, :cond_1

    .line 29
    aget-object p2, p2, v2

    invoke-virtual {p2}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object p2

    invoke-interface {p1, p2}, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;->setLocalCreativeURL(Ljava/lang/String;)V

    return-void

    :cond_1
    add-int/lit8 v6, v6, 0x1

    goto :goto_2

    :cond_2
    add-int/lit8 v5, v5, 0x1

    goto :goto_1

    :cond_3
    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    :cond_4
    return-void
.end method

.method private f(Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;)Z
    .locals 2

    if-eqz p1, :cond_0

    .line 1
    :try_start_0
    invoke-interface {p1}, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;->getCreativeType()Lcom/baidu/mobads/interfaces/IXAdInstanceInfo$CreativeType;

    move-result-object p1

    sget-object v0, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo$CreativeType;->VIDEO:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo$CreativeType;

    if-ne p1, v0, :cond_0

    .line 2
    iget-boolean p1, p0, Lcom/baidu/mobads/production/b;->p:Z

    if-eqz p1, :cond_0

    .line 3
    invoke-static {}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getInstance()Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;

    move-result-object p1

    invoke-virtual {p1}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getSystemUtils()Lcom/baidu/mobads/interfaces/utils/IXAdSystemUtils;

    move-result-object p1

    .line 4
    invoke-virtual {p0}, Lcom/baidu/mobads/production/b;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-interface {p1, v0}, Lcom/baidu/mobads/interfaces/utils/IXAdSystemUtils;->isWifiConnected(Landroid/content/Context;)Ljava/lang/Boolean;

    move-result-object p1

    .line 5
    invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result p1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    return p1

    :catchall_0
    move-exception p1

    .line 6
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->u:Lcom/baidu/mobads/interfaces/utils/IXAdLogger;

    invoke-virtual {p1}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;

    move-result-object p1

    const-string v1, "XAbstractAdProdTemplate"

    invoke-interface {v0, v1, p1}, Lcom/baidu/mobads/interfaces/utils/IXAdLogger;->d(Ljava/lang/String;Ljava/lang/String;)I

    :cond_0
    const/4 p1, 0x1

    return p1
.end method

.method private g(Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;)Z
    .locals 2

    if-eqz p1, :cond_0

    .line 1
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->o:Lcom/baidu/mobads/interfaces/IXAdConstants4PDK$SlotType;

    if-eqz v0, :cond_0

    sget-object v0, Lcom/baidu/mobads/interfaces/IXAdConstants4PDK$SlotType;->SLOT_TYPE_FEEDS:Lcom/baidu/mobads/interfaces/IXAdConstants4PDK$SlotType;

    .line 2
    invoke-virtual {v0}, Lcom/baidu/mobads/interfaces/IXAdConstants4PDK$SlotType;->getValue()Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcom/baidu/mobads/production/b;->o:Lcom/baidu/mobads/interfaces/IXAdConstants4PDK$SlotType;

    invoke-virtual {v1}, Lcom/baidu/mobads/interfaces/IXAdConstants4PDK$SlotType;->getValue()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 3
    invoke-interface {p1}, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;->getCreativeType()Lcom/baidu/mobads/interfaces/IXAdInstanceInfo$CreativeType;

    move-result-object p1

    sget-object v0, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo$CreativeType;->VIDEO:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo$CreativeType;

    if-ne p1, v0, :cond_0

    const/4 p1, 0x1

    return p1

    :cond_0
    const/4 p1, 0x0

    return p1
.end method

.method private h(Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;)V
    .locals 9

    .line 1
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->u:Lcom/baidu/mobads/interfaces/utils/IXAdLogger;

    const-string v1, "XAbstractAdProdTemplate"

    const-string v2, "cacheCreativeAsset"

    invoke-interface {v0, v1, v2}, Lcom/baidu/mobads/interfaces/utils/IXAdLogger;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 2
    invoke-virtual {p0, p1}, Lcom/baidu/mobads/production/b;->b(Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;)Ljava/lang/String;

    move-result-object v6

    .line 3
    invoke-static {v6}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    return-void

    .line 4
    :cond_0
    invoke-direct {p0, p1, v6}, Lcom/baidu/mobads/production/b;->a(Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_1

    .line 5
    invoke-direct {p0, p1, v6}, Lcom/baidu/mobads/production/b;->b(Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;Ljava/lang/String;)V

    return-void

    :cond_1
    const/4 v0, 0x0

    .line 6
    invoke-interface {p1, v0}, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;->setLocalCreativeURL(Ljava/lang/String;)V

    .line 7
    invoke-virtual {p0}, Lcom/baidu/mobads/production/b;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/baidu/mobads/utils/m;->a(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v7

    .line 8
    invoke-static {v6}, Lcom/baidu/mobads/utils/m;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    .line 9
    invoke-static {}, Lcom/baidu/mobads/c/a;->a()Lcom/baidu/mobads/c/a;

    move-result-object v0

    .line 10
    invoke-interface {p1}, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;->getMainPictureUrl()Ljava/lang/String;

    move-result-object v1

    if-eqz v0, :cond_2

    .line 11
    invoke-interface {p1}, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;->getCreativeType()Lcom/baidu/mobads/interfaces/IXAdInstanceInfo$CreativeType;

    move-result-object v2

    invoke-direct {p0, v0, v2, v1}, Lcom/baidu/mobads/production/b;->a(Lcom/baidu/mobads/c/a;Lcom/baidu/mobads/interfaces/IXAdInstanceInfo$CreativeType;Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_2

    .line 12
    invoke-interface {p1}, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;->getMainPictureUrl()Ljava/lang/String;

    move-result-object v1

    new-instance v2, Lcom/baidu/mobads/production/j;

    move-object v3, v2

    move-object v4, p0

    move-object v5, p1

    invoke-direct/range {v3 .. v8}, Lcom/baidu/mobads/production/j;-><init>(Lcom/baidu/mobads/production/b;Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v0, v1, v2}, Lcom/baidu/mobads/c/a;->a(Ljava/lang/String;Ljava/util/Observer;)V

    goto :goto_0

    .line 13
    :cond_2
    invoke-direct {p0, p1, v6, v7, v8}, Lcom/baidu/mobads/production/b;->a(Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    :goto_0
    return-void
.end method

.method public static j()Lcom/baidu/mobads/interfaces/IXAdContainerFactory;
    .locals 1

    .line 1
    sget-object v0, Lcom/baidu/mobads/production/b;->a:Lcom/baidu/mobads/interfaces/IXAdContainerFactory;

    return-object v0
.end method


# virtual methods
.method protected a(Landroid/content/Context;)V
    .locals 2

    .line 67
    sget-object v0, Lcom/baidu/mobads/production/BaiduXAdSDKContext;->mApkLoader:Lcom/baidu/mobads/f/g;

    if-nez v0, :cond_1

    .line 68
    const-class v0, Lcom/baidu/mobads/f/g;

    monitor-enter v0

    .line 69
    :try_start_0
    sget-object v1, Lcom/baidu/mobads/production/BaiduXAdSDKContext;->mApkLoader:Lcom/baidu/mobads/f/g;

    if-nez v1, :cond_0

    .line 70
    new-instance v1, Lcom/baidu/mobads/f/g;

    invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object p1

    invoke-direct {v1, p1}, Lcom/baidu/mobads/f/g;-><init>(Landroid/content/Context;)V

    sput-object v1, Lcom/baidu/mobads/production/BaiduXAdSDKContext;->mApkLoader:Lcom/baidu/mobads/f/g;

    .line 71
    :cond_0
    monitor-exit v0

    goto :goto_0

    :catchall_0
    move-exception p1

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw p1

    .line 72
    :cond_1
    :goto_0
    sget-object p1, Lcom/baidu/mobads/production/b;->a:Lcom/baidu/mobads/interfaces/IXAdContainerFactory;

    if-eqz p1, :cond_2

    .line 73
    invoke-direct {p0}, Lcom/baidu/mobads/production/b;->b()V

    goto :goto_1

    .line 74
    :cond_2
    sget-object p1, Lcom/baidu/mobads/production/BaiduXAdSDKContext;->mApkLoader:Lcom/baidu/mobads/f/g;

    if-eqz p1, :cond_3

    .line 75
    iget-object p1, p0, Lcom/baidu/mobads/production/b;->u:Lcom/baidu/mobads/interfaces/utils/IXAdLogger;

    const-string v0, "XAbstractAdProdTemplate"

    const-string v1, "BaiduXAdSDKContext.mApkLoader != null,load apk"

    invoke-interface {p1, v0, v1}, Lcom/baidu/mobads/interfaces/utils/IXAdLogger;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 76
    sget-object p1, Lcom/baidu/mobads/production/BaiduXAdSDKContext;->mApkLoader:Lcom/baidu/mobads/f/g;

    new-instance v0, Lcom/baidu/mobads/production/i;

    invoke-direct {v0, p0}, Lcom/baidu/mobads/production/i;-><init>(Lcom/baidu/mobads/production/b;)V

    invoke-virtual {p1, v0}, Lcom/baidu/mobads/f/g;->a(Lcom/baidu/mobads/f/g$c;)V

    goto :goto_1

    .line 77
    :cond_3
    iget-object p1, p0, Lcom/baidu/mobads/production/b;->u:Lcom/baidu/mobads/interfaces/utils/IXAdLogger;

    const-string v0, "XAbstractAdProdTemplate"

    const-string v1, "BaiduXAdSDKContext.mApkLoader == null,not load apk"

    invoke-interface {p1, v0, v1}, Lcom/baidu/mobads/interfaces/utils/IXAdLogger;->d(Ljava/lang/String;Ljava/lang/String;)I

    :goto_1
    return-void
.end method

.method public a(Lcom/baidu/mobad/feeds/RequestParameters;)V
    .locals 0

    .line 172
    iput-object p1, p0, Lcom/baidu/mobads/production/b;->t:Lcom/baidu/mobads/interfaces/feeds/IXAdFeedsRequestParameters;

    return-void
.end method

.method protected abstract a(Lcom/baidu/mobads/interfaces/IXAdContainer;Ljava/util/HashMap;)V
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/baidu/mobads/interfaces/IXAdContainer;",
            "Ljava/util/HashMap<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;)V"
        }
    .end annotation
.end method

.method protected a(Lcom/baidu/mobads/interfaces/IXAdContainerContext;)V
    .locals 7

    const-string v0, "AdError"

    const-string v1, ""

    const-string v2, "XAbstractAdProdTemplate"

    .line 143
    :try_start_0
    iget-object v3, p0, Lcom/baidu/mobads/production/b;->u:Lcom/baidu/mobads/interfaces/utils/IXAdLogger;

    const-string v4, "processAllReadyOnUIThread()"

    invoke-interface {v3, v2, v4}, Lcom/baidu/mobads/interfaces/utils/IXAdLogger;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 144
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v3

    iput-wide v3, p0, Lcom/baidu/mobads/production/b;->w:J

    .line 145
    invoke-direct {p0, p1}, Lcom/baidu/mobads/production/b;->b(Lcom/baidu/mobads/interfaces/IXAdContainerContext;)Lcom/baidu/mobads/interfaces/IXAdContainer;

    move-result-object p1

    iput-object p1, p0, Lcom/baidu/mobads/production/b;->h:Lcom/baidu/mobads/interfaces/IXAdContainer;

    .line 146
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v3

    iput-wide v3, p0, Lcom/baidu/mobads/production/b;->x:J

    .line 147
    iget-object p1, p0, Lcom/baidu/mobads/production/b;->h:Lcom/baidu/mobads/interfaces/IXAdContainer;

    if-nez p1, :cond_0

    .line 148
    iget-object p1, p0, Lcom/baidu/mobads/production/b;->u:Lcom/baidu/mobads/interfaces/utils/IXAdLogger;

    const-string v1, "processAllReadyOnUIThread(), mAdContainer is null"

    invoke-interface {p1, v2, v1}, Lcom/baidu/mobads/interfaces/utils/IXAdLogger;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 149
    new-instance p1, Lcom/baidu/mobads/e/a;

    invoke-direct {p1, v0}, Lcom/baidu/mobads/e/a;-><init>(Ljava/lang/String;)V

    invoke-virtual {p0, p1}, Lcom/baidu/mobads/openad/c/c;->dispatchEvent(Lcom/baidu/mobads/openad/interfaces/event/IOAdEvent;)V

    goto/16 :goto_0

    .line 150
    :cond_0
    iget-object p1, p0, Lcom/baidu/mobads/production/b;->u:Lcom/baidu/mobads/interfaces/utils/IXAdLogger;

    const-string v3, "processAllReadyOnUIThread(), mAdContainer be created"

    invoke-interface {p1, v2, v3}, Lcom/baidu/mobads/interfaces/utils/IXAdLogger;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 151
    iget-object p1, p0, Lcom/baidu/mobads/production/b;->q:Ljava/util/HashMap;

    const-string v3, "start"

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-wide v5, p0, Lcom/baidu/mobads/production/b;->v:J

    invoke-virtual {v4, v5, v6}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {p1, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 152
    iget-object p1, p0, Lcom/baidu/mobads/production/b;->q:Ljava/util/HashMap;

    const-string v3, "container_before_created"

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-wide v5, p0, Lcom/baidu/mobads/production/b;->w:J

    invoke-virtual {v4, v5, v6}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {p1, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 153
    iget-object p1, p0, Lcom/baidu/mobads/production/b;->q:Ljava/util/HashMap;

    const-string v3, "container_after_created"

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-wide v5, p0, Lcom/baidu/mobads/production/b;->x:J

    invoke-virtual {v4, v5, v6}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p1, v3, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 154
    iget-object p1, p0, Lcom/baidu/mobads/production/b;->h:Lcom/baidu/mobads/interfaces/IXAdContainer;

    iget-object v1, p0, Lcom/baidu/mobads/production/b;->q:Ljava/util/HashMap;

    invoke-interface {p1, v1}, Lcom/baidu/mobads/interfaces/IXAdContainer;->setParameters(Ljava/util/HashMap;)V

    .line 155
    iget-object p1, p0, Lcom/baidu/mobads/production/b;->h:Lcom/baidu/mobads/interfaces/IXAdContainer;

    invoke-interface {p1}, Lcom/baidu/mobads/interfaces/IXAdContainer;->getRemoteVersion()Ljava/lang/String;

    move-result-object p1

    sput-object p1, Lcom/baidu/mobads/constants/a;->c:Ljava/lang/String;

    .line 156
    iget-object p1, p0, Lcom/baidu/mobads/production/b;->u:Lcom/baidu/mobads/interfaces/utils/IXAdLogger;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "processAllReadyOnUIThread(), mAdContainer be created, hasCalledLoadAtAppSide="

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v3, p0, Lcom/baidu/mobads/production/b;->r:Ljava/util/concurrent/atomic/AtomicBoolean;

    .line 157
    invoke-virtual {v3}, Ljava/util/concurrent/atomic/AtomicBoolean;->get()Z

    move-result v3

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    .line 158
    invoke-interface {p1, v2, v1}, Lcom/baidu/mobads/interfaces/utils/IXAdLogger;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 159
    iget-object p1, p0, Lcom/baidu/mobads/production/b;->r:Ljava/util/concurrent/atomic/AtomicBoolean;

    invoke-virtual {p1}, Ljava/util/concurrent/atomic/AtomicBoolean;->get()Z

    move-result p1

    if-eqz p1, :cond_1

    .line 160
    iget-object p1, p0, Lcom/baidu/mobads/production/b;->h:Lcom/baidu/mobads/interfaces/IXAdContainer;

    invoke-interface {p1}, Lcom/baidu/mobads/interfaces/IXAdContainer;->load()V

    .line 161
    :cond_1
    invoke-virtual {p0}, Lcom/baidu/mobads/production/b;->c()V

    .line 162
    iget-object p1, p0, Lcom/baidu/mobads/production/b;->f:Landroid/content/Context;

    invoke-direct {p0, p1}, Lcom/baidu/mobads/production/b;->b(Landroid/content/Context;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    .line 163
    iget-object v1, p0, Lcom/baidu/mobads/production/b;->u:Lcom/baidu/mobads/interfaces/utils/IXAdLogger;

    invoke-static {}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getInstance()Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;

    move-result-object v2

    invoke-virtual {v2}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getErrorCode()Lcom/baidu/mobads/interfaces/error/IXAdErrorCode;

    move-result-object v2

    sget-object v3, Lcom/baidu/mobads/interfaces/error/XAdErrorCode;->PERMISSION_PROBLEM:Lcom/baidu/mobads/interfaces/error/XAdErrorCode;

    .line 164
    invoke-virtual {p1}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object v4

    invoke-interface {v2, v3, v4}, Lcom/baidu/mobads/interfaces/error/IXAdErrorCode;->genCompleteErrorMessage(Lcom/baidu/mobads/interfaces/error/XAdErrorCode;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 165
    invoke-interface {v1, v2}, Lcom/baidu/mobads/interfaces/utils/IXAdLogger;->e(Ljava/lang/String;)I

    .line 166
    invoke-static {}, Lcom/baidu/mobads/b/a;->a()Lcom/baidu/mobads/b/a;

    move-result-object v1

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "process all ready on UI Thread exception: "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/Exception;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v1, p1}, Lcom/baidu/mobads/b/a;->a(Ljava/lang/String;)V

    .line 167
    new-instance p1, Lcom/baidu/mobads/e/a;

    invoke-direct {p1, v0}, Lcom/baidu/mobads/e/a;-><init>(Ljava/lang/String;)V

    invoke-virtual {p0, p1}, Lcom/baidu/mobads/openad/c/c;->dispatchEvent(Lcom/baidu/mobads/openad/interfaces/event/IOAdEvent;)V

    :goto_0
    return-void
.end method

.method protected a(Lcom/baidu/mobads/interfaces/IXAdResponseInfo;)V
    .locals 9

    .line 131
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->u:Lcom/baidu/mobads/interfaces/utils/IXAdLogger;

    const-string v1, "XAbstractAdProdTemplate"

    const-string v2, "handleAllReady"

    invoke-interface {v0, v1, v2}, Lcom/baidu/mobads/interfaces/utils/IXAdLogger;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 132
    iget v0, p0, Lcom/baidu/mobads/production/b;->g:I

    add-int/lit8 v0, v0, 0x1

    iput v0, p0, Lcom/baidu/mobads/production/b;->g:I

    .line 133
    invoke-interface {p1}, Lcom/baidu/mobads/interfaces/IXAdResponseInfo;->getPrimaryAdInstanceInfo()Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;

    move-result-object v0

    iput-object v0, p0, Lcom/baidu/mobads/production/b;->d:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;

    .line 134
    invoke-virtual {p0}, Lcom/baidu/mobads/production/b;->getApplicationContext()Landroid/content/Context;

    move-result-object v2

    .line 135
    invoke-virtual {p0}, Lcom/baidu/mobads/production/b;->getActivity()Landroid/app/Activity;

    move-result-object v3

    .line 136
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->k:Lcom/baidu/mobads/vo/d;

    invoke-virtual {v0}, Lcom/baidu/mobads/vo/d;->d()Lcom/baidu/mobads/interfaces/IXAdProdInfo;

    move-result-object v4

    .line 137
    new-instance v6, Lcom/baidu/mobads/production/p;

    invoke-direct {v6, v2, p0}, Lcom/baidu/mobads/production/p;-><init>(Landroid/content/Context;Lcom/baidu/mobads/production/b;)V

    .line 138
    new-instance v0, Lcom/baidu/mobads/production/o;

    iget-object v5, p0, Lcom/baidu/mobads/production/b;->e:Landroid/widget/RelativeLayout;

    const/4 v8, 0x0

    move-object v1, v0

    move-object v7, p1

    invoke-direct/range {v1 .. v8}, Lcom/baidu/mobads/production/o;-><init>(Landroid/content/Context;Landroid/app/Activity;Lcom/baidu/mobads/interfaces/IXAdProdInfo;Landroid/widget/RelativeLayout;Lcom/baidu/mobads/interfaces/IXAdContainerEventListener;Lcom/baidu/mobads/interfaces/IXAdResponseInfo;Landroid/view/View;)V

    .line 139
    invoke-static {}, Landroid/os/Looper;->myLooper()Landroid/os/Looper;

    move-result-object p1

    invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;

    move-result-object v1

    if-ne p1, v1, :cond_0

    .line 140
    invoke-virtual {p0, v0}, Lcom/baidu/mobads/production/b;->a(Lcom/baidu/mobads/interfaces/IXAdContainerContext;)V

    goto :goto_0

    .line 141
    :cond_0
    new-instance p1, Landroid/os/Handler;

    invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;

    move-result-object v1

    invoke-direct {p1, v1}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V

    new-instance v1, Lcom/baidu/mobads/production/m;

    invoke-direct {v1, p0, v0}, Lcom/baidu/mobads/production/m;-><init>(Lcom/baidu/mobads/production/b;Lcom/baidu/mobads/interfaces/IXAdContainerContext;)V

    invoke-virtual {p1, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    :goto_0
    return-void
.end method

.method protected a(Lcom/baidu/mobads/interfaces/IXAdResponseInfo;Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;)V
    .locals 0

    .line 142
    iput-object p2, p0, Lcom/baidu/mobads/production/b;->d:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;

    return-void
.end method

.method protected a(Lcom/baidu/mobads/interfaces/error/XAdErrorCode;Ljava/lang/String;)V
    .locals 3

    .line 59
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    const-string v1, "msg"

    .line 60
    invoke-virtual {v0, v1, p1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 61
    new-instance v1, Lcom/baidu/mobads/e/a;

    const-string v2, "AdError"

    invoke-direct {v1, v2, v0}, Lcom/baidu/mobads/e/a;-><init>(Ljava/lang/String;Ljava/util/HashMap;)V

    invoke-virtual {p0, v1}, Lcom/baidu/mobads/openad/c/c;->dispatchEvent(Lcom/baidu/mobads/openad/interfaces/event/IOAdEvent;)V

    .line 62
    invoke-static {}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getInstance()Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;

    move-result-object v0

    invoke-virtual {v0}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getErrorCode()Lcom/baidu/mobads/interfaces/error/IXAdErrorCode;

    move-result-object v0

    invoke-interface {v0, p1, p2}, Lcom/baidu/mobads/interfaces/error/IXAdErrorCode;->printErrorMessage(Lcom/baidu/mobads/interfaces/error/XAdErrorCode;Ljava/lang/String;)V

    return-void
.end method

.method protected abstract a(Lcom/baidu/mobads/openad/d/b;Lcom/baidu/mobads/production/u;I)V
.end method

.method protected a(Lcom/baidu/mobads/openad/interfaces/event/IOAdEvent;Ljava/lang/String;)V
    .locals 2

    const-string p2, ""

    .line 42
    invoke-interface {p1}, Lcom/baidu/mobads/openad/interfaces/event/IOAdEvent;->getData()Ljava/util/Map;

    move-result-object p1

    const-string v0, "message"

    invoke-interface {p1, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Ljava/lang/String;

    .line 43
    :try_start_0
    new-instance v0, Lcom/baidu/mobads/vo/c;

    invoke-direct {v0, p1}, Lcom/baidu/mobads/vo/c;-><init>(Ljava/lang/String;)V

    invoke-virtual {p0, v0}, Lcom/baidu/mobads/production/b;->setAdResponseInfo(Lcom/baidu/mobads/interfaces/IXAdResponseInfo;)V

    .line 44
    iget-object p1, p0, Lcom/baidu/mobads/production/b;->A:Lcom/baidu/mobads/interfaces/IXAdResponseInfo;

    if-eqz p1, :cond_0

    iget-object p1, p0, Lcom/baidu/mobads/production/b;->A:Lcom/baidu/mobads/interfaces/IXAdResponseInfo;

    invoke-interface {p1}, Lcom/baidu/mobads/interfaces/IXAdResponseInfo;->getAdInstanceList()Ljava/util/ArrayList;

    move-result-object p1

    invoke-virtual {p1}, Ljava/util/ArrayList;->size()I

    move-result p1

    if-lez p1, :cond_0

    .line 45
    iget-object p1, p0, Lcom/baidu/mobads/production/b;->A:Lcom/baidu/mobads/interfaces/IXAdResponseInfo;

    invoke-interface {p1}, Lcom/baidu/mobads/interfaces/IXAdResponseInfo;->getPrimaryAdInstanceInfo()Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;

    move-result-object p1

    iput-object p1, p0, Lcom/baidu/mobads/production/b;->d:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;

    .line 46
    invoke-interface {p1}, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;->getOriginJsonObject()Lorg/json/JSONObject;

    move-result-object p1

    const-string v0, "mimetype"

    .line 47
    invoke-virtual {p1, v0}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    iput-object p1, p0, Lcom/baidu/mobads/production/b;->s:Ljava/lang/String;

    .line 48
    invoke-direct {p0}, Lcom/baidu/mobads/production/b;->a()V

    .line 49
    invoke-virtual {p0}, Lcom/baidu/mobads/production/b;->e()V

    goto :goto_2

    .line 50
    :cond_0
    iget-object p1, p0, Lcom/baidu/mobads/production/b;->A:Lcom/baidu/mobads/interfaces/IXAdResponseInfo;

    if-eqz p1, :cond_1

    iget-object p1, p0, Lcom/baidu/mobads/production/b;->A:Lcom/baidu/mobads/interfaces/IXAdResponseInfo;

    invoke-interface {p1}, Lcom/baidu/mobads/interfaces/IXAdResponseInfo;->getErrorCode()Ljava/lang/String;

    move-result-object p1

    goto :goto_0

    :cond_1
    move-object p1, p2

    .line 51
    :goto_0
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->A:Lcom/baidu/mobads/interfaces/IXAdResponseInfo;

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/baidu/mobads/production/b;->A:Lcom/baidu/mobads/interfaces/IXAdResponseInfo;

    invoke-interface {v0}, Lcom/baidu/mobads/interfaces/IXAdResponseInfo;->getErrorMessage()Ljava/lang/String;

    move-result-object v0

    goto :goto_1

    :cond_2
    move-object v0, p2

    .line 52
    :goto_1
    invoke-static {}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getInstance()Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;

    move-result-object v1

    .line 53
    invoke-virtual {v1}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getErrorCode()Lcom/baidu/mobads/interfaces/error/IXAdErrorCode;

    move-result-object v1

    .line 54
    invoke-interface {v1, p1, v0, p2}, Lcom/baidu/mobads/interfaces/error/IXAdErrorCode;->printErrorMessage(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 55
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "response ad list empty: "

    invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p0, p1}, Lcom/baidu/mobads/production/b;->e(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_2

    :catch_0
    const-string p1, "response json parsing error"

    .line 56
    invoke-static {}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getInstance()Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;

    move-result-object v0

    invoke-virtual {v0}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getErrorCode()Lcom/baidu/mobads/interfaces/error/IXAdErrorCode;

    move-result-object v0

    invoke-interface {v0, p2, p1, p2}, Lcom/baidu/mobads/interfaces/error/IXAdErrorCode;->printErrorMessage(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 57
    invoke-virtual {p0, p1}, Lcom/baidu/mobads/production/b;->d(Ljava/lang/String;)V

    .line 58
    invoke-static {}, Lcom/baidu/mobads/b/a;->a()Lcom/baidu/mobads/b/a;

    move-result-object p2

    invoke-virtual {p2, p1}, Lcom/baidu/mobads/b/a;->a(Ljava/lang/String;)V

    :goto_2
    return-void
.end method

.method protected a(Ljava/lang/String;)V
    .locals 3

    .line 63
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    const-string v1, "error_message"

    .line 64
    invoke-virtual {v0, v1, p1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 65
    new-instance v1, Lcom/baidu/mobads/e/a;

    const-string v2, "AdError"

    invoke-direct {v1, v2, v0}, Lcom/baidu/mobads/e/a;-><init>(Ljava/lang/String;Ljava/util/HashMap;)V

    invoke-virtual {p0, v1}, Lcom/baidu/mobads/openad/c/c;->dispatchEvent(Lcom/baidu/mobads/openad/interfaces/event/IOAdEvent;)V

    .line 66
    invoke-static {}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getInstance()Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;

    move-result-object v0

    invoke-virtual {v0}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getErrorCode()Lcom/baidu/mobads/interfaces/error/IXAdErrorCode;

    move-result-object v0

    const-string v1, ""

    invoke-interface {v0, v1, p1, v1}, Lcom/baidu/mobads/interfaces/error/IXAdErrorCode;->printErrorMessage(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method public a(Z)V
    .locals 1

    .line 168
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->h:Lcom/baidu/mobads/interfaces/IXAdContainer;

    if-eqz v0, :cond_0

    .line 169
    invoke-interface {v0, p1}, Lcom/baidu/mobads/interfaces/IXAdContainer;->onWindowFocusChanged(Z)V

    :cond_0
    return-void
.end method

.method public a(ZLcom/baidu/mobads/interfaces/IXAdInstanceInfo;)V
    .locals 0

    return-void
.end method

.method public a(ILandroid/view/KeyEvent;)Z
    .locals 1

    .line 170
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->h:Lcom/baidu/mobads/interfaces/IXAdContainer;

    if-eqz v0, :cond_0

    .line 171
    invoke-interface {v0, p1, p2}, Lcom/baidu/mobads/interfaces/IXAdContainer;->processKeyEvent(ILandroid/view/KeyEvent;)Ljava/lang/Boolean;

    move-result-object p1

    invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result p1

    return p1

    :cond_0
    const/4 p1, 0x0

    return p1
.end method

.method public a(Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;)Z
    .locals 0

    const/4 p1, 0x0

    return p1
.end method

.method protected a(Lcom/baidu/mobads/vo/d;)Z
    .locals 3

    .line 128
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->u:Lcom/baidu/mobads/interfaces/utils/IXAdLogger;

    const-string v1, "XAbstractAdProdTemplate"

    const-string v2, "doRequest()"

    invoke-interface {v0, v1, v2}, Lcom/baidu/mobads/interfaces/utils/IXAdLogger;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 129
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->f:Landroid/content/Context;

    invoke-virtual {p0, v0}, Lcom/baidu/mobads/production/b;->a(Landroid/content/Context;)V

    .line 130
    invoke-virtual {p0, p1}, Lcom/baidu/mobads/production/b;->b(Lcom/baidu/mobads/vo/d;)V

    const/4 p1, 0x1

    return p1
.end method

.method a(Ljava/lang/String;Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;)Z
    .locals 3

    .line 23
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    const/4 v1, 0x0

    if-eqz v0, :cond_0

    return v1

    .line 24
    :cond_0
    :try_start_0
    invoke-virtual {p0}, Lcom/baidu/mobads/production/b;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0, p1}, Lcom/baidu/mobads/utils/m;->b(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 25
    new-instance v0, Ljava/io/File;

    invoke-direct {v0, p1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 26
    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v0

    if-eqz v0, :cond_2

    .line 27
    invoke-static {}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getInstance()Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;

    move-result-object v0

    invoke-virtual {v0}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getAdCreativeCacheManager()Lcom/baidu/mobads/utils/m;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcom/baidu/mobads/utils/m;->c(Ljava/lang/String;)V

    .line 28
    invoke-virtual {p0}, Lcom/baidu/mobads/production/b;->i()Z

    move-result v0

    const/4 v2, 0x1

    if-eqz v0, :cond_1

    .line 29
    invoke-virtual {p0}, Lcom/baidu/mobads/production/b;->getApplicationContext()Landroid/content/Context;

    move-result-object p1

    .line 30
    invoke-interface {p2}, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;->getMainPictureUrl()Ljava/lang/String;

    move-result-object v0

    .line 31
    invoke-static {p1, v0}, Lcom/baidu/mobads/utils/m;->a(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 32
    new-instance v0, Ljava/io/File;

    invoke-direct {v0, p1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 33
    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v0

    if-eqz v0, :cond_2

    .line 34
    invoke-static {}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getInstance()Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;

    move-result-object v0

    invoke-virtual {v0}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getAdCreativeCacheManager()Lcom/baidu/mobads/utils/m;

    move-result-object v0

    .line 35
    invoke-virtual {v0, p1}, Lcom/baidu/mobads/utils/m;->c(Ljava/lang/String;)V

    .line 36
    invoke-virtual {p0}, Lcom/baidu/mobads/production/b;->getApplicationContext()Landroid/content/Context;

    move-result-object p1

    .line 37
    invoke-interface {p2}, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;->getMainPictureUrl()Ljava/lang/String;

    move-result-object v0

    .line 38
    invoke-static {p1, v0}, Lcom/baidu/mobads/utils/m;->a(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 39
    invoke-direct {p0, p2, p1}, Lcom/baidu/mobads/production/b;->c(Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;Ljava/lang/String;)V

    return v2

    .line 40
    :cond_1
    invoke-interface {p2, p1}, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;->setLocalCreativeURL(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return v2

    :catch_0
    move-exception p1

    .line 41
    invoke-static {}, Lcom/baidu/mobads/utils/q;->a()Lcom/baidu/mobads/utils/q;

    move-result-object p2

    invoke-virtual {p2, p1}, Lcom/baidu/mobads/utils/q;->e(Ljava/lang/Throwable;)I

    :cond_2
    return v1
.end method

.method public b(Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;)Ljava/lang/String;
    .locals 3

    const-string v0, ""

    if-nez p1, :cond_0

    return-object v0

    .line 7
    :cond_0
    invoke-interface {p1}, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;->getCreativeType()Lcom/baidu/mobads/interfaces/IXAdInstanceInfo$CreativeType;

    move-result-object v1

    sget-object v2, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo$CreativeType;->VIDEO:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo$CreativeType;

    if-ne v1, v2, :cond_1

    .line 8
    invoke-interface {p1}, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;->getVideoUrl()Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    .line 9
    :cond_1
    invoke-interface {p1}, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;->getCreativeType()Lcom/baidu/mobads/interfaces/IXAdInstanceInfo$CreativeType;

    move-result-object v1

    sget-object v2, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo$CreativeType;->RM:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo$CreativeType;

    if-ne v1, v2, :cond_2

    .line 10
    invoke-interface {p1}, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;->getMainPictureUrl()Ljava/lang/String;

    move-result-object v0

    :cond_2
    :goto_0
    return-object v0
.end method

.method public b(I)V
    .locals 1

    .line 37
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->h:Lcom/baidu/mobads/interfaces/IXAdContainer;

    if-eqz v0, :cond_0

    .line 38
    invoke-interface {v0, p1}, Lcom/baidu/mobads/interfaces/IXAdContainer;->onWindowVisibilityChanged(I)V

    :cond_0
    return-void
.end method

.method protected abstract b(Lcom/baidu/mobads/interfaces/IXAdContainer;Ljava/util/HashMap;)V
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/baidu/mobads/interfaces/IXAdContainer;",
            "Ljava/util/HashMap<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;)V"
        }
    .end annotation
.end method

.method public abstract b(Lcom/baidu/mobads/interfaces/IXAdResponseInfo;)V
.end method

.method protected b(Lcom/baidu/mobads/vo/d;)V
    .locals 3

    .line 22
    iput-object p1, p0, Lcom/baidu/mobads/production/b;->k:Lcom/baidu/mobads/vo/d;

    .line 23
    invoke-virtual {p0}, Lcom/baidu/mobads/production/b;->m()V

    const/4 v0, 0x0

    .line 24
    invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    iput-object v0, p0, Lcom/baidu/mobads/production/b;->b:Ljava/lang/Boolean;

    .line 25
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->i:Ljava/lang/String;

    if-nez v0, :cond_0

    invoke-virtual {p1}, Lcom/baidu/mobads/vo/d;->b()Ljava/lang/String;

    move-result-object v0

    .line 26
    :cond_0
    new-instance p1, Lcom/baidu/mobads/production/u;

    invoke-direct {p1}, Lcom/baidu/mobads/production/u;-><init>()V

    iput-object p1, p0, Lcom/baidu/mobads/production/b;->j:Lcom/baidu/mobads/production/u;

    .line 27
    sput-object v0, Lcom/baidu/mobads/b/a;->b:Ljava/lang/String;

    .line 28
    new-instance p1, Lcom/baidu/mobads/openad/d/b;

    const-string v1, ""

    invoke-direct {p1, v0, v1}, Lcom/baidu/mobads/openad/d/b;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    const/4 v0, 0x1

    .line 29
    iput v0, p1, Lcom/baidu/mobads/openad/d/b;->e:I

    .line 30
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->j:Lcom/baidu/mobads/production/u;

    iget-object v1, p0, Lcom/baidu/mobads/production/b;->E:Lcom/baidu/mobads/openad/interfaces/event/IOAdEventListener;

    const-string v2, "URLLoader.Load.Complete"

    invoke-virtual {v0, v2, v1}, Lcom/baidu/mobads/openad/c/c;->addEventListener(Ljava/lang/String;Lcom/baidu/mobads/openad/interfaces/event/IOAdEventListener;)V

    .line 31
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->j:Lcom/baidu/mobads/production/u;

    iget-object v1, p0, Lcom/baidu/mobads/production/b;->E:Lcom/baidu/mobads/openad/interfaces/event/IOAdEventListener;

    const-string v2, "URLLoader.Load.Error"

    invoke-virtual {v0, v2, v1}, Lcom/baidu/mobads/openad/c/c;->addEventListener(Ljava/lang/String;Lcom/baidu/mobads/openad/interfaces/event/IOAdEventListener;)V

    .line 32
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->j:Lcom/baidu/mobads/production/u;

    iget v1, p0, Lcom/baidu/mobads/production/b;->m:I

    invoke-virtual {p0, p1, v0, v1}, Lcom/baidu/mobads/production/b;->a(Lcom/baidu/mobads/openad/d/b;Lcom/baidu/mobads/production/u;I)V

    return-void
.end method

.method protected b(Ljava/lang/String;)V
    .locals 2

    const/4 v0, 0x1

    .line 4
    invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    iput-object v0, p0, Lcom/baidu/mobads/production/b;->b:Ljava/lang/Boolean;

    .line 5
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->z:Ljava/util/concurrent/atomic/AtomicBoolean;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;->set(Z)V

    .line 6
    invoke-virtual {p0, p1}, Lcom/baidu/mobads/production/b;->c(Ljava/lang/String;)V

    return-void
.end method

.method public b(Z)V
    .locals 0

    .line 39
    iput-boolean p1, p0, Lcom/baidu/mobads/production/b;->p:Z

    return-void
.end method

.method public abstract c()V
.end method

.method protected c(Lcom/baidu/mobads/interfaces/IXAdContainer;Ljava/util/HashMap;)V
    .locals 0
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/baidu/mobads/interfaces/IXAdContainer;",
            "Ljava/util/HashMap<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;)V"
        }
    .end annotation

    .line 30
    invoke-virtual {p0}, Lcom/baidu/mobads/production/b;->n()V

    .line 31
    invoke-virtual {p0, p1, p2}, Lcom/baidu/mobads/production/b;->a(Lcom/baidu/mobads/interfaces/IXAdContainer;Ljava/util/HashMap;)V

    .line 32
    new-instance p1, Lcom/baidu/mobads/e/a;

    const-string p2, "AdLoaded"

    invoke-direct {p1, p2}, Lcom/baidu/mobads/e/a;-><init>(Ljava/lang/String;)V

    invoke-virtual {p0, p1}, Lcom/baidu/mobads/openad/c/c;->dispatchEvent(Lcom/baidu/mobads/openad/interfaces/event/IOAdEvent;)V

    return-void
.end method

.method protected c(Lcom/baidu/mobads/interfaces/IXAdResponseInfo;)V
    .locals 0

    .line 33
    invoke-virtual {p0, p1}, Lcom/baidu/mobads/production/b;->b(Lcom/baidu/mobads/interfaces/IXAdResponseInfo;)V

    return-void
.end method

.method protected declared-synchronized c(Ljava/lang/String;)V
    .locals 4

    monitor-enter p0

    .line 1
    :try_start_0
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->u:Lcom/baidu/mobads/interfaces/utils/IXAdLogger;

    const-string v1, "XAbstractAdProdTemplate"

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "doubleCheck:"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, ", bfp="

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object p1, p0, Lcom/baidu/mobads/production/b;->b:Ljava/lang/Boolean;

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string p1, ", apk="

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    sget-object p1, Lcom/baidu/mobads/production/BaiduXAdSDKContext;->isRemoteLoadSuccess:Ljava/lang/Boolean;

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-interface {v0, v1, p1}, Lcom/baidu/mobads/interfaces/utils/IXAdLogger;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 2
    iget-object p1, p0, Lcom/baidu/mobads/production/b;->z:Ljava/util/concurrent/atomic/AtomicBoolean;

    invoke-virtual {p1}, Ljava/util/concurrent/atomic/AtomicBoolean;->get()Z

    move-result p1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    if-eqz p1, :cond_0

    .line 3
    monitor-exit p0

    return-void

    .line 4
    :cond_0
    :try_start_1
    sget-object p1, Lcom/baidu/mobads/production/BaiduXAdSDKContext;->isRemoteLoadSuccess:Ljava/lang/Boolean;

    invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result p1

    if-eqz p1, :cond_1

    .line 5
    invoke-static {}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getInstance()Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;

    move-result-object p1

    invoke-virtual {p0}, Lcom/baidu/mobads/production/b;->getAdContainerFactory()Lcom/baidu/mobads/interfaces/IXAdContainerFactory;

    move-result-object v0

    invoke-virtual {p1, v0}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->initializeAdContainerFactory(Lcom/baidu/mobads/interfaces/IXAdContainerFactory;)V

    .line 6
    :cond_1
    sget-object p1, Lcom/baidu/mobads/production/BaiduXAdSDKContext;->isRemoteLoadSuccess:Ljava/lang/Boolean;

    invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result p1

    if-eqz p1, :cond_3

    iget-object p1, p0, Lcom/baidu/mobads/production/b;->b:Ljava/lang/Boolean;

    invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result p1
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_1

    if-eqz p1, :cond_3

    const/4 p1, 0x1

    .line 7
    :try_start_2
    invoke-virtual {p0}, Lcom/baidu/mobads/production/b;->getAdResponseInfo()Lcom/baidu/mobads/interfaces/IXAdResponseInfo;

    move-result-object v0

    if-eqz v0, :cond_2

    .line 8
    invoke-virtual {p0, v0}, Lcom/baidu/mobads/production/b;->a(Lcom/baidu/mobads/interfaces/IXAdResponseInfo;)V

    goto :goto_0

    .line 9
    :cond_2
    new-instance v0, Lcom/baidu/mobads/e/a;

    const-string v1, "AdError"

    invoke-direct {v0, v1}, Lcom/baidu/mobads/e/a;-><init>(Ljava/lang/String;)V

    invoke-virtual {p0, v0}, Lcom/baidu/mobads/openad/c/c;->dispatchEvent(Lcom/baidu/mobads/openad/interfaces/event/IOAdEvent;)V

    .line 10
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->u:Lcom/baidu/mobads/interfaces/utils/IXAdLogger;

    const-string v1, "XAbstractAdProdTemplate"

    const-string v2, "doubleCheck IXAdResponseInfo is null, but isBFP4APPRequestSuccess is true"

    invoke-interface {v0, v1, v2}, Lcom/baidu/mobads/interfaces/utils/IXAdLogger;->d(Ljava/lang/String;Ljava/lang/String;)I
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    .line 11
    :goto_0
    :try_start_3
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->z:Ljava/util/concurrent/atomic/AtomicBoolean;

    :goto_1
    invoke-virtual {v0, p1}, Ljava/util/concurrent/atomic/AtomicBoolean;->set(Z)V
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_1

    goto :goto_3

    :catchall_0
    move-exception v0

    goto :goto_2

    :catch_0
    move-exception v0

    .line 12
    :try_start_4
    iget-object v1, p0, Lcom/baidu/mobads/production/b;->u:Lcom/baidu/mobads/interfaces/utils/IXAdLogger;

    const-string v2, "XAbstractAdProdTemplate"

    invoke-interface {v1, v2, v0}, Lcom/baidu/mobads/interfaces/utils/IXAdLogger;->d(Ljava/lang/String;Ljava/lang/Throwable;)I

    .line 13
    new-instance v0, Lcom/baidu/mobads/e/a;

    const-string v1, "AdError"

    invoke-direct {v0, v1}, Lcom/baidu/mobads/e/a;-><init>(Ljava/lang/String;)V

    invoke-virtual {p0, v0}, Lcom/baidu/mobads/openad/c/c;->dispatchEvent(Lcom/baidu/mobads/openad/interfaces/event/IOAdEvent;)V
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_0

    .line 14
    :try_start_5
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->z:Ljava/util/concurrent/atomic/AtomicBoolean;

    goto :goto_1

    :goto_2
    iget-object v1, p0, Lcom/baidu/mobads/production/b;->z:Ljava/util/concurrent/atomic/AtomicBoolean;

    invoke-virtual {v1, p1}, Ljava/util/concurrent/atomic/AtomicBoolean;->set(Z)V

    throw v0
    :try_end_5
    .catchall {:try_start_5 .. :try_end_5} :catchall_1

    .line 15
    :cond_3
    :goto_3
    monitor-exit p0

    return-void

    :catchall_1
    move-exception p1

    monitor-exit p0

    goto :goto_5

    :goto_4
    throw p1

    :goto_5
    goto :goto_4
.end method

.method public c(Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;)Z
    .locals 2

    .line 16
    invoke-interface {p1}, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;->getCreativeType()Lcom/baidu/mobads/interfaces/IXAdInstanceInfo$CreativeType;

    move-result-object v0

    sget-object v1, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo$CreativeType;->STATIC_IMAGE:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo$CreativeType;

    if-eq v0, v1, :cond_1

    .line 17
    invoke-interface {p1}, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;->getCreativeType()Lcom/baidu/mobads/interfaces/IXAdInstanceInfo$CreativeType;

    move-result-object p1

    sget-object v0, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo$CreativeType;->GIF:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo$CreativeType;

    if-ne p1, v0, :cond_0

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    goto :goto_1

    :cond_1
    :goto_0
    const/4 p1, 0x1

    :goto_1
    return p1
.end method

.method protected abstract d()V
.end method

.method protected d(Lcom/baidu/mobads/interfaces/IXAdContainer;Ljava/util/HashMap;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/baidu/mobads/interfaces/IXAdContainer;",
            "Ljava/util/HashMap<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;)V"
        }
    .end annotation

    .line 3
    sget-object v0, Lcom/baidu/mobads/interfaces/IXAdConstants4PDK$SlotState;->PLAYING:Lcom/baidu/mobads/interfaces/IXAdConstants4PDK$SlotState;

    iput-object v0, p0, Lcom/baidu/mobads/production/b;->l:Lcom/baidu/mobads/interfaces/IXAdConstants4PDK$SlotState;

    .line 4
    invoke-virtual {p0, p1, p2}, Lcom/baidu/mobads/production/b;->b(Lcom/baidu/mobads/interfaces/IXAdContainer;Ljava/util/HashMap;)V

    .line 5
    new-instance p1, Lcom/baidu/mobads/e/a;

    const-string p2, "AdStarted"

    invoke-direct {p1, p2}, Lcom/baidu/mobads/e/a;-><init>(Ljava/lang/String;)V

    invoke-virtual {p0, p1}, Lcom/baidu/mobads/openad/c/c;->dispatchEvent(Lcom/baidu/mobads/openad/interfaces/event/IOAdEvent;)V

    return-void
.end method

.method protected d(Ljava/lang/String;)V
    .locals 2

    .line 6
    invoke-static {}, Lcom/baidu/mobads/b/a;->a()Lcom/baidu/mobads/b/a;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcom/baidu/mobads/b/a;->a(Ljava/lang/String;)V

    .line 7
    new-instance v0, Ljava/util/HashMap;

    const/4 v1, 0x1

    invoke-direct {v0, v1}, Ljava/util/HashMap;-><init>(I)V

    const-string v1, "error_message"

    .line 8
    invoke-virtual {v0, v1, p1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 9
    new-instance p1, Lcom/baidu/mobads/e/a;

    const-string v1, "AdError"

    invoke-direct {p1, v1, v0}, Lcom/baidu/mobads/e/a;-><init>(Ljava/lang/String;Ljava/util/HashMap;)V

    .line 10
    invoke-virtual {p0, p1}, Lcom/baidu/mobads/openad/c/c;->dispatchEvent(Lcom/baidu/mobads/openad/interfaces/event/IOAdEvent;)V

    return-void
.end method

.method public d(Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;)Z
    .locals 2

    .line 1
    invoke-interface {p1}, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;->getCreativeType()Lcom/baidu/mobads/interfaces/IXAdInstanceInfo$CreativeType;

    move-result-object v0

    sget-object v1, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo$CreativeType;->RM:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo$CreativeType;

    if-ne v0, v1, :cond_0

    iget-object v0, p0, Lcom/baidu/mobads/production/b;->s:Ljava/lang/String;

    const-string v1, "vr"

    invoke-virtual {v0, v1}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_1

    .line 2
    :cond_0
    invoke-interface {p1}, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;->getCreativeType()Lcom/baidu/mobads/interfaces/IXAdInstanceInfo$CreativeType;

    move-result-object p1

    sget-object v0, Lcom/baidu/mobads/interfaces/IXAdInstanceInfo$CreativeType;->VIDEO:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo$CreativeType;

    if-ne p1, v0, :cond_2

    :cond_1
    const/4 p1, 0x1

    goto :goto_0

    :cond_2
    const/4 p1, 0x0

    :goto_0
    return p1
.end method

.method protected e()V
    .locals 0

    return-void
.end method

.method protected e(Lcom/baidu/mobads/interfaces/IXAdContainer;Ljava/util/HashMap;)V
    .locals 0
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/baidu/mobads/interfaces/IXAdContainer;",
            "Ljava/util/HashMap<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;)V"
        }
    .end annotation

    return-void
.end method

.method protected e(Ljava/lang/String;)V
    .locals 2

    .line 1
    new-instance v0, Ljava/util/HashMap;

    const/4 v1, 0x1

    invoke-direct {v0, v1}, Ljava/util/HashMap;-><init>(I)V

    const-string v1, "error_message"

    .line 2
    invoke-virtual {v0, v1, p1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 3
    new-instance p1, Lcom/baidu/mobads/e/a;

    const-string v1, "AdError"

    invoke-direct {p1, v1, v0}, Lcom/baidu/mobads/e/a;-><init>(Ljava/lang/String;Ljava/util/HashMap;)V

    .line 4
    invoke-virtual {p0, p1}, Lcom/baidu/mobads/openad/c/c;->dispatchEvent(Lcom/baidu/mobads/openad/interfaces/event/IOAdEvent;)V

    return-void
.end method

.method public e(Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;)Z
    .locals 0

    const/4 p1, 0x0

    return p1
.end method

.method public f()V
    .locals 0

    return-void
.end method

.method protected f(Ljava/lang/String;)V
    .locals 1

    .line 7
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p1

    if-eqz p1, :cond_0

    .line 8
    iget-object p1, p0, Lcom/baidu/mobads/production/b;->u:Lcom/baidu/mobads/interfaces/utils/IXAdLogger;

    const-string v0, "\u4ee3\u7801\u4f4did(adPlaceId)\u4e0d\u53ef\u4ee5\u4e3a\u7a7a"

    invoke-interface {p1, v0}, Lcom/baidu/mobads/interfaces/utils/IXAdLogger;->e(Ljava/lang/String;)I

    :cond_0
    return-void
.end method

.method protected g()V
    .locals 0

    return-void
.end method

.method public getActivity()Landroid/app/Activity;
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->f:Landroid/content/Context;

    instance-of v1, v0, Landroid/app/Activity;

    if-eqz v1, :cond_0

    .line 2
    check-cast v0, Landroid/app/Activity;

    goto :goto_0

    .line 3
    :cond_0
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->e:Landroid/widget/RelativeLayout;

    if-eqz v0, :cond_1

    invoke-virtual {v0}, Landroid/widget/RelativeLayout;->getContext()Landroid/content/Context;

    move-result-object v0

    instance-of v0, v0, Landroid/app/Activity;

    if-eqz v0, :cond_1

    .line 4
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->e:Landroid/widget/RelativeLayout;

    invoke-virtual {v0}, Landroid/widget/RelativeLayout;->getContext()Landroid/content/Context;

    move-result-object v0

    check-cast v0, Landroid/app/Activity;

    goto :goto_0

    :cond_1
    const/4 v0, 0x0

    :goto_0
    return-object v0
.end method

.method public getAdContainerFactory()Lcom/baidu/mobads/interfaces/IXAdContainerFactory;
    .locals 1

    .line 1
    sget-object v0, Lcom/baidu/mobads/production/b;->a:Lcom/baidu/mobads/interfaces/IXAdContainerFactory;

    return-object v0
.end method

.method public getAdResponseInfo()Lcom/baidu/mobads/interfaces/IXAdResponseInfo;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->A:Lcom/baidu/mobads/interfaces/IXAdResponseInfo;

    return-object v0
.end method

.method public getApplicationContext()Landroid/content/Context;
    .locals 1

    .line 1
    invoke-virtual {p0}, Lcom/baidu/mobads/production/b;->getActivity()Landroid/app/Activity;

    move-result-object v0

    if-nez v0, :cond_0

    .line 2
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->f:Landroid/content/Context;

    goto :goto_0

    :cond_0
    invoke-virtual {v0}, Landroid/app/Activity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    :goto_0
    return-object v0
.end method

.method public getCurrentAdInstance()Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->d:Lcom/baidu/mobads/interfaces/IXAdInstanceInfo;

    return-object v0
.end method

.method public getCurrentXAdContainer()Lcom/baidu/mobads/interfaces/IXAdContainer;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->h:Lcom/baidu/mobads/interfaces/IXAdContainer;

    return-object v0
.end method

.method public getDuration()I
    .locals 1

    const/4 v0, -0x1

    return v0
.end method

.method public getId()Ljava/lang/String;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->B:Ljava/lang/String;

    return-object v0
.end method

.method public getParameter()Ljava/util/HashMap;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/HashMap<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation

    .line 1
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->q:Ljava/util/HashMap;

    return-object v0
.end method

.method public getPlayheadTime()I
    .locals 1

    const/4 v0, -0x1

    return v0
.end method

.method public getProdBase()Landroid/view/ViewGroup;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->e:Landroid/widget/RelativeLayout;

    return-object v0
.end method

.method public getProdInfo()Lcom/baidu/mobads/interfaces/IXAdProdInfo;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->k:Lcom/baidu/mobads/vo/d;

    invoke-virtual {v0}, Lcom/baidu/mobads/vo/d;->d()Lcom/baidu/mobads/interfaces/IXAdProdInfo;

    move-result-object v0

    return-object v0
.end method

.method public getRequestParameters()Lcom/baidu/mobads/interfaces/feeds/IXAdFeedsRequestParameters;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->t:Lcom/baidu/mobads/interfaces/feeds/IXAdFeedsRequestParameters;

    if-nez v0, :cond_0

    .line 2
    new-instance v0, Lcom/baidu/mobad/feeds/RequestParameters$Builder;

    invoke-direct {v0}, Lcom/baidu/mobad/feeds/RequestParameters$Builder;-><init>()V

    invoke-virtual {v0}, Lcom/baidu/mobad/feeds/RequestParameters$Builder;->build()Lcom/baidu/mobad/feeds/RequestParameters;

    move-result-object v0

    iput-object v0, p0, Lcom/baidu/mobads/production/b;->t:Lcom/baidu/mobads/interfaces/feeds/IXAdFeedsRequestParameters;

    .line 3
    :cond_0
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->t:Lcom/baidu/mobads/interfaces/feeds/IXAdFeedsRequestParameters;

    return-object v0
.end method

.method public getSlotState()Lcom/baidu/mobads/interfaces/IXAdConstants4PDK$SlotState;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->l:Lcom/baidu/mobads/interfaces/IXAdConstants4PDK$SlotState;

    return-object v0
.end method

.method public getType()Lcom/baidu/mobads/interfaces/IXAdConstants4PDK$SlotType;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->o:Lcom/baidu/mobads/interfaces/IXAdConstants4PDK$SlotType;

    return-object v0
.end method

.method public h()Z
    .locals 1

    const/4 v0, 0x0

    return v0
.end method

.method public i()Z
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->s:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 2
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->s:Ljava/lang/String;

    const-string v1, "3d"

    invoke-virtual {v0, v1}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v0

    return v0

    :cond_0
    const/4 v0, 0x0

    return v0
.end method

.method public isAdServerRequestingSuccess()Ljava/lang/Boolean;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->b:Ljava/lang/Boolean;

    return-object v0
.end method

.method protected k()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->h:Lcom/baidu/mobads/interfaces/IXAdContainer;

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/baidu/mobads/production/b;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 2
    sget-object v0, Lcom/baidu/mobads/interfaces/IXAdConstants4PDK$SlotState;->PAUSED:Lcom/baidu/mobads/interfaces/IXAdConstants4PDK$SlotState;

    iput-object v0, p0, Lcom/baidu/mobads/production/b;->l:Lcom/baidu/mobads/interfaces/IXAdConstants4PDK$SlotState;

    .line 3
    new-instance v0, Landroid/os/Handler;

    invoke-virtual {p0}, Lcom/baidu/mobads/production/b;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/Context;->getMainLooper()Landroid/os/Looper;

    move-result-object v1

    invoke-direct {v0, v1}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V

    new-instance v1, Lcom/baidu/mobads/production/d;

    invoke-direct {v1, p0}, Lcom/baidu/mobads/production/d;-><init>(Lcom/baidu/mobads/production/b;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    :cond_0
    return-void
.end method

.method protected l()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->h:Lcom/baidu/mobads/interfaces/IXAdContainer;

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/baidu/mobads/production/b;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 2
    sget-object v0, Lcom/baidu/mobads/interfaces/IXAdConstants4PDK$SlotState;->PLAYING:Lcom/baidu/mobads/interfaces/IXAdConstants4PDK$SlotState;

    iput-object v0, p0, Lcom/baidu/mobads/production/b;->l:Lcom/baidu/mobads/interfaces/IXAdConstants4PDK$SlotState;

    .line 3
    new-instance v0, Landroid/os/Handler;

    invoke-virtual {p0}, Lcom/baidu/mobads/production/b;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/Context;->getMainLooper()Landroid/os/Looper;

    move-result-object v1

    invoke-direct {v0, v1}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V

    new-instance v1, Lcom/baidu/mobads/production/e;

    invoke-direct {v1, p0}, Lcom/baidu/mobads/production/e;-><init>(Lcom/baidu/mobads/production/b;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    :cond_0
    return-void
.end method

.method public load()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->h:Lcom/baidu/mobads/interfaces/IXAdContainer;

    if-eqz v0, :cond_0

    .line 2
    invoke-interface {v0}, Lcom/baidu/mobads/interfaces/IXAdContainer;->load()V

    goto :goto_0

    .line 3
    :cond_0
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->r:Ljava/util/concurrent/atomic/AtomicBoolean;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;->set(Z)V

    :goto_0
    return-void
.end method

.method protected m()V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->j:Lcom/baidu/mobads/production/u;

    if-eqz v0, :cond_0

    .line 2
    invoke-virtual {v0}, Lcom/baidu/mobads/openad/c/c;->removeAllListeners()V

    .line 3
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->j:Lcom/baidu/mobads/production/u;

    invoke-virtual {v0}, Lcom/baidu/mobads/openad/d/a;->a()V

    :cond_0
    return-void
.end method

.method protected n()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->D:Ljava/lang/Runnable;

    if-eqz v0, :cond_0

    .line 2
    iget-object v1, p0, Lcom/baidu/mobads/production/b;->C:Landroid/os/Handler;

    invoke-virtual {v1, v0}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V

    :cond_0
    const/4 v0, 0x0

    .line 3
    iput-object v0, p0, Lcom/baidu/mobads/production/b;->D:Ljava/lang/Runnable;

    return-void
.end method

.method protected o()V
    .locals 4

    .line 1
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->D:Ljava/lang/Runnable;

    if-eqz v0, :cond_0

    .line 2
    iget-object v1, p0, Lcom/baidu/mobads/production/b;->C:Landroid/os/Handler;

    iget v2, p0, Lcom/baidu/mobads/production/b;->m:I

    int-to-long v2, v2

    invoke-virtual {v1, v0, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    :cond_0
    return-void
.end method

.method public p()V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->h:Lcom/baidu/mobads/interfaces/IXAdContainer;

    if-eqz v0, :cond_0

    .line 2
    invoke-interface {v0}, Lcom/baidu/mobads/interfaces/IXAdContainer;->onAttachedToWindow()V

    :cond_0
    return-void
.end method

.method public pause()V
    .locals 0

    .line 1
    invoke-virtual {p0}, Lcom/baidu/mobads/production/b;->k()V

    return-void
.end method

.method public q()V
    .locals 1
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "MissingSuperCall"
        }
    .end annotation

    .line 1
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->h:Lcom/baidu/mobads/interfaces/IXAdContainer;

    if-eqz v0, :cond_0

    .line 2
    invoke-interface {v0}, Lcom/baidu/mobads/interfaces/IXAdContainer;->onDetachedFromWindow()V

    :cond_0
    return-void
.end method

.method public r()V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->h:Lcom/baidu/mobads/interfaces/IXAdContainer;

    if-eqz v0, :cond_0

    .line 2
    invoke-interface {v0}, Lcom/baidu/mobads/interfaces/IXAdContainer;->destroy()V

    .line 3
    :cond_0
    invoke-static {}, Lcom/baidu/mobads/production/BaiduXAdSDKContext;->exit()V

    return-void
.end method

.method public resize()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->h:Lcom/baidu/mobads/interfaces/IXAdContainer;

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/baidu/mobads/production/b;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 2
    new-instance v0, Landroid/os/Handler;

    invoke-virtual {p0}, Lcom/baidu/mobads/production/b;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/Context;->getMainLooper()Landroid/os/Looper;

    move-result-object v1

    invoke-direct {v0, v1}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V

    new-instance v1, Lcom/baidu/mobads/production/n;

    invoke-direct {v1, p0}, Lcom/baidu/mobads/production/n;-><init>(Lcom/baidu/mobads/production/b;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    :cond_0
    return-void
.end method

.method public resume()V
    .locals 0

    .line 1
    invoke-virtual {p0}, Lcom/baidu/mobads/production/b;->l()V

    return-void
.end method

.method public s()Z
    .locals 1

    const/4 v0, 0x0

    return v0
.end method

.method public setActivity(Landroid/content/Context;)V
    .locals 1

    .line 1
    iput-object p1, p0, Lcom/baidu/mobads/production/b;->f:Landroid/content/Context;

    .line 2
    invoke-virtual {p0}, Lcom/baidu/mobads/production/b;->g()V

    .line 3
    iget-object p1, p0, Lcom/baidu/mobads/production/b;->r:Ljava/util/concurrent/atomic/AtomicBoolean;

    const/4 v0, 0x0

    invoke-virtual {p1, v0}, Ljava/util/concurrent/atomic/AtomicBoolean;->set(Z)V

    .line 4
    invoke-virtual {p0}, Lcom/baidu/mobads/production/b;->d()V

    .line 5
    invoke-static {}, Lcom/baidu/mobads/b/a;->a()Lcom/baidu/mobads/b/a;

    move-result-object p1

    invoke-virtual {p0}, Lcom/baidu/mobads/production/b;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {p1, v0}, Lcom/baidu/mobads/b/a;->a(Landroid/content/Context;)V

    .line 6
    invoke-static {}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getInstance()Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;

    move-result-object p1

    invoke-virtual {p0}, Lcom/baidu/mobads/production/b;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {p1, v0}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->initializeApplicationContext(Landroid/content/Context;)V

    .line 7
    new-instance p1, Lcom/baidu/mobads/production/h;

    invoke-direct {p1, p0}, Lcom/baidu/mobads/production/h;-><init>(Lcom/baidu/mobads/production/b;)V

    iput-object p1, p0, Lcom/baidu/mobads/production/b;->D:Ljava/lang/Runnable;

    .line 8
    iget-object p1, p0, Lcom/baidu/mobads/production/b;->f:Landroid/content/Context;

    invoke-static {p1}, Lcom/baidu/mobads/f/q;->a(Landroid/content/Context;)Lcom/baidu/mobads/f/q;

    move-result-object p1

    invoke-virtual {p1}, Lcom/baidu/mobads/f/q;->a()V

    return-void
.end method

.method public setAdResponseInfo(Lcom/baidu/mobads/interfaces/IXAdResponseInfo;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/baidu/mobads/production/b;->A:Lcom/baidu/mobads/interfaces/IXAdResponseInfo;

    return-void
.end method

.method public setAdSlotBase(Landroid/widget/RelativeLayout;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/baidu/mobads/production/b;->e:Landroid/widget/RelativeLayout;

    return-void
.end method

.method public setId(Ljava/lang/String;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/baidu/mobads/production/b;->B:Ljava/lang/String;

    return-void
.end method

.method public setParameter(Ljava/util/HashMap;)V
    .locals 0
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/HashMap<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    .line 1
    iput-object p1, p0, Lcom/baidu/mobads/production/b;->q:Ljava/util/HashMap;

    return-void
.end method

.method public start()V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->h:Lcom/baidu/mobads/interfaces/IXAdContainer;

    if-eqz v0, :cond_0

    .line 2
    invoke-interface {v0}, Lcom/baidu/mobads/interfaces/IXAdContainer;->start()V

    :cond_0
    return-void
.end method

.method public stop()V
    .locals 3

    .line 1
    invoke-static {}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getInstance()Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;

    move-result-object v0

    invoke-virtual {v0}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getAdLogger()Lcom/baidu/mobads/interfaces/utils/IXAdLogger;

    move-result-object v0

    const-string v1, "XAbstractAdProdTemplate"

    const-string v2, "stop"

    invoke-interface {v0, v1, v2}, Lcom/baidu/mobads/interfaces/utils/IXAdLogger;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 2
    iget-object v0, p0, Lcom/baidu/mobads/production/b;->h:Lcom/baidu/mobads/interfaces/IXAdContainer;

    if-eqz v0, :cond_0

    .line 3
    invoke-interface {v0}, Lcom/baidu/mobads/interfaces/IXAdContainer;->stop()V

    const/4 v0, 0x0

    .line 4
    iput-object v0, p0, Lcom/baidu/mobads/production/b;->h:Lcom/baidu/mobads/interfaces/IXAdContainer;

    :cond_0
    return-void
.end method
